# $Id: CMakeLists.txt 621588 2020-12-14 19:26:57Z ivanov $

# NCBI_add_app(datatool)

set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

set(INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/../../../include)

include_directories(${INCLUDE_DIR})
add_executable(datatool 
"datatool.cpp"
"type.cpp"
"namespace.cpp"
"statictype.cpp"
"enumtype.cpp"
"reftype.cpp"
"unitype.cpp"
"blocktype.cpp"
"choicetype.cpp"
"typestr.cpp"
"ptrstr.cpp"
"stdstr.cpp"
"classstr.cpp"
"enumstr.cpp"
"stlstr.cpp"
"choicestr.cpp"
"choiceptrstr.cpp"
"value.cpp"
"mcontainer.cpp"
"module.cpp"
"moduleset.cpp"
"generate.cpp"
"filecode.cpp"
"code.cpp"
"fileutil.cpp"
"alexer.cpp"
"aparser.cpp"
"parser.cpp"
"lexer.cpp"
"exceptions.cpp"
"comments.cpp"
"srcutil.cpp"
"dtdaux.cpp"
"dtdlexer.cpp"
"dtdparser.cpp"
"rpcgen.cpp"
"aliasstr.cpp"
"xsdlexer.cpp"
"xsdparser.cpp"
"wsdllexer.cpp"
"wsdlparser.cpp"
"wsdlstr.cpp"
"jsdlexer.cpp"
"jsdparser.cpp"
"traversal_pattern_match_callback.cpp"
"traversal_code_generator.cpp"
"traversal_merger.cpp"
"traversal_node.cpp"
"traversal_spec_file_parser.cpp" "${INCLUDE_DIR}/ncbi_pch.hpp")

target_link_libraries(datatool corelib xser)
target_link_directories(datatool PUBLIC ${INCLUDE_DIR})
